﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sunboxsoft.ASMS.Server.Domain.Entity
{
    /// <summary>
    /// 套餐
    /// </summary>
    public class EPackage
    {
        public Guid Id { get; set; }

        /// <summary>
        /// 商家Id
        /// </summary>
        public Guid? BusinessId { get; set; }

        /// <summary>
        /// 商店Id
        /// </summary>
        public Guid? StationId { get; set; }

        /// <summary>
        /// 套餐编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 套餐名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 开始发售时间
        /// </summary>
        public DateTime StartSaleTime { get; set; }

        /// <summary>
        /// 停止发售时间
        /// </summary>
        public DateTime StopSaleTime { get; set; }

        /// <summary>
        /// 到期日期
        /// </summary>
        public DateTime ExpiringDate { get; set; }

        /// <summary>
        /// 持续时间
        /// </summary>
        public int Duration { get; set; }

        /// <summary>
        /// 持续时间类型
        /// </summary>
        public int DurationType { get; set; }

        /// <summary>
        /// 默认价格
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 市值
        /// </summary>
        public decimal MarketPrice { get; set; }

        /// <summary>
        /// 销售提成
        /// </summary>
        public decimal? SalesCommission { get; set; }

        /// <summary>
        /// 销售提成类型
        /// </summary>
        public int? SalesCommissionType { get; set; }

        /// <summary>
        /// 技师提成
        /// </summary>
        public decimal? TechnicianCommission { get; set; }

        /// <summary>
        /// 技师提成类型
        /// </summary>
        public int? TechnicianCommissionType { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 可重复购买次数,null为不限制
        /// </summary>
        public int? RebuyCount { get; set; }

        /// <summary>
        /// 套餐可见性
        /// </summary>
        public int PackageAccessibility { get; set; }

        public int Status { get; set; }

        public string Creator { get; set; }

        public DateTime CreatedTime { get; set; }
    }
}
